//
//  GlobalDefine.h
//  Kugou-OC
//
//  Created by BH on 16/1/21.
//  Copyright © 2016年 Sunny. All rights reserved.
//

#ifndef GlobalDefine_h
#define GlobalDefine_h

//设备宽高
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

//统一背景色
#define BG_COLOR [UIColor colorWithRed:44/255.0 green:120/255.0 blue:218/255.0 alpha:1.0]

//设置颜色
#define COLOR(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]

//设置图片
#define IMAGE(n) [UIImage imageNamed:n]

//初始化一个对象
#define ALLOC(n) [[n alloc] init]

//统一字体和字体颜色
#define TITLE_ONE_FONT [UIFont systemFontOfSize:20.f]
#define TITLE_ONE_TEXT_COLOR [UIColor blackColor]
#define TITLE_SECOND_FONT [UIFont systemFontOfSize:18.f]
#define TITLE_SECOND_TEXT_COLOR [UIColor darkGrayColor]
#define TITLE_THIRD_FONT [UIFont systemFontOfSize:16.f]
#define TITLE_THIRD_TEXT_COLOR [UIColor blackColor]
#define TITLE_FOUR_FONT [UIFont systemFontOfSize:14.f]
#define TITLE_FOUR_TEXT_COLOR [UIColor lightGrayColor]
#define TITLE_FIVE_FONT [UIFont systemFontOfSize:12.f]

#define USERDEFAULT [NSUserDefaults standardUserDefaults]
#define PUSH(c) [self.navigationController pushViewController:c animated:YES]

//缓存目录
#define CACHE_DIRECTORY [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0]

#endif /* GlobalDefine_h */
